package com.zl.learning.excel;

import com.zl.learning.excel.util.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class User {
    @Excel(name = "姓名")
    private String username;
    @Excel(name = "性别", replace = {"男性_1", "女性_2", "未知_-1"})
    private String sex;
    @Excel(name = "年龄")
    private Integer age;
    @Excel(name = "手机号")
    private String phone;
    @Excel(name = "邮箱")
    private String email;
    @Excel(name = "头像", type = 2)
    private String headImg;

    public User(String username, String sex, Integer age, String phone, String email) {
        this.username = username;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.email = email;
    }

    public User(String username, String sex, Integer age, String phone, String email, String headImg) {
        this.username = username;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.email = email;
        this.headImg = headImg;
    }
}
